#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
int main()
{
	int i = 0;
	int j = 0;
	int arr[] = {1,3,2,5,6,4,6,7,8,6,7};
	int str[20] = { 0 };
	int ret =sizeof(arr)/sizeof(arr[0]) - 1;
	for (i = 0; i <= ret; i++)
	{
		if (arr[i] % 2 == 1)
		{
			str[j] = arr[i];
			j++;
		}
	}
	for(i = 0; i <= ret; i++)
	{
		if (arr[i] % 2 == 0)
		{
			str[j] = arr[i];
			j++;
		}
	}
	for (i = 0; i <= ret; i++)
	{
		printf("%d ", str[i]);
	}
	return 0;
}